home *** CD-ROM | disk | FTP | other *** search
/ Shareware Overload Trio 2 / Shareware Overload Trio Volume 2 (Chestnut CD-ROM).ISO / dir37 / ms_sh23s.zip / SRC / NT.MAK < prev    next >
Makefile  |  1994-08-26  |  3KB  |  114 lines

  1. #
  2. # MS-DOS SHELL - Makefile
  3. #
  4. # MS-DOS SHELL - Copyright (c) 1994 Data Logic Limited.
  5. #
  6. # Redistribution and use in source and binary forms are permitted
  7. # provided that the above copyright notice is duplicated in the
  8. # source form.
  9. #
  10. #
  11. #    $Header: /usr/users/istewart/shell/sh2.3/Release/RCS/nt.mak,v 1.1 1994/02/01 10:31:09 istewart Exp $
  12. #
  13. #    $Log: nt.mak,v $
  14. # Revision 1.1  1994/02/01  10:31:09  istewart
  15. # Initial revision
  16. #
  17. #
  18. # This makefile builds one version of the shell:
  19. #
  20. #  Windows NT - 32 bit
  21. #
  22. # BETA is set to the release name (V2xxBeta) or RELEASE.
  23. #
  24. # You may need to uncomment one or more following, if the associated environment
  25. # variable is to something else.
  26. #
  27. #BETA=RELEASE
  28. #
  29. # Include some standard NT make macros which reside in \mstools\h
  30.  
  31. !include <ntwin32.mak>
  32.  
  33. # fix a few crufts...
  34. CC       = cl386 -nologo
  35. CFLAGS   = -W3 -Iinclude
  36. cvarsdll = $(cvars)
  37. ldebug   = -debug:full
  38. MAKE     = nmake -nologo -f $(MAKFILE)
  39.  
  40. MSTOOLS     = f:\mstools
  41. DEST     = $(HOME)\bin
  42. LDFLAGS     = $(linkdebug) $(conlflags) $(ldebug)
  43. LIBS     = $(conlibs)
  44. #LIBS     = $(guilibsdll)
  45. LINKER     = $(link)
  46. MAKEFILE = nt.mak
  47.  
  48. HDRS     = sh.h
  49.  
  50. OBJS     = sh1.obj sh2.obj sh3.obj sh4.obj sh5.obj sh6.obj \
  51.        sh7.obj sh8.obj sh9.obj sh10.obj sh11.obj sh12.obj sh13.obj
  52.  
  53. PROGRAM     = shnt.exe
  54.  
  55. SRCS     = sh1.c sh2.c sh3.c sh4.c sh5.c sh6.c sh7.c \
  56.        sh8.c sh9.c sh10.c sh11.c sh12.c sh13.c
  57.  
  58. all:        $(PROGRAM)
  59.  
  60. $(PROGRAM):    $(OBJS)
  61.     $(LINKER) $(LDFLAGS) $(OBJS) -out:$(PROGRAM) $(LIBS)
  62.  
  63. optimized:
  64.     $(MAKE) NODEBUG=1 all
  65.  
  66. clean:;        -rm -f *.obj *.exe
  67.  
  68. .c.obj:
  69.     $(CC) $(CFLAGS) $(cdebug) $(cvarsdll) -c $<
  70.  
  71. .c.exe:
  72.     $(CC) $(CFLAGS) $(cdebug) $(cvarsdll) -c $<
  73.     $(LINKER) $(LDFLAGS) $*.obj -out:$*.exe $(LIBS)
  74.  
  75. sh1.obj:    sh1.c sh.h
  76. sh2.obj:    sh2.c sh.h
  77. sh3.obj:    sh3.c sh.h
  78. sh4.obj:    sh4.c sh.h
  79. sh5.obj:    sh5.c sh.h
  80. sh6.obj:    $(SRCS) sh.h
  81.     $(CC) $(CFLAGS) $(cdebug) $(cvarsdll) -c -DRELEASE=$(BETA) sh6.c
  82.  
  83. sh7.obj:    sh7.c sh.h
  84. sh8.obj:    sh8.c sh.h
  85. sh9.obj:    sh9.c sh.h
  86. sh10.obj:    sh10.c sh.h
  87. sh11.obj:    sh11.c sh.h
  88. sh12.obj:    sh12.c sh.h
  89. sh13.obj:    sh13.c sh.h
  90.  
  91. showkey: showkey.exe
  92. showkey.exe:
  93.     $(CC) $(CFLAGS) $(cdebug) $(cvarsdll) -c showkey.c
  94.     $(LINKER) $(LDFLAGS) showkey.obj -out:showkey.exe $(LIBS)
  95.  
  96. director: director.exe
  97. director.exe:
  98.     $(CC) $(CFLAGS) $(cdebug) -DTEST $(cvarsdll) -c director.c
  99.     $(LINKER) $(LDFLAGS) director.obj -out:director.exe $(LIBS)
  100.  
  101. glob: glob.exe
  102. glob.exe: director.obj
  103.     $(CC) $(CFLAGS) $(cdebug) -DTEST $(cvarsdll) -c glob.c
  104.     $(LINKER) $(LDFLAGS) glob.obj director.obj -out:glob.exe $(LIBS)
  105.  
  106. stdargv: stdargv.exe
  107. stdargv.exe: glob.obj director.obj
  108.     $(CC) $(CFLAGS) $(cdebug) -DTEST $(cvarsdll) -c stdargv.c
  109.     $(LINKER) $(LDFLAGS) stdargv.obj director.obj glob.obj -out:stdargv.exe $(LIBS)
  110.  
  111. glob.obj:    glob.c
  112. director.obj:    director.c
  113. stdargv.obj:    stdargv.c
  114.